import React from 'react'
import { Table, Pagination } from 'antd';
import "antd/dist/antd.css";
interface Iprops {
  studentData: any,
  columns: any,
  style?:any
  
}
export default function table(props: Iprops) {
  let { studentData, columns ,style} = props

  return (
    <div className="table">
      <Table 
        rowKey={(record)=>{
          return record.id
        }}
        dataSource={studentData} 
        columns={columns} 
        pagination={false} 
        scroll={{ y: 450 }} 
        bordered={true} 
      />
    </div>
  )
}
